package com.edu.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Question extends BaseEntity {
    private Integer id;
    private String questionTitle;
    private String questionAnswer;
    private String score;
    private Integer typeId;
    private Integer status;
    private String createDate;
    public String getCreateDate(){
        return formatTime(createDate);
    }
    private Integer creatorId;
    private QuestionOptions questionOptions;
    private User user;      //创建者
    private String grade;
}
